angular.component(ꞌprettyꞌ).controller   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
c 0
b 0
f 0
nc 1
dl 0
loc 4
rs 10
nop 2
1
/**
2
 pretty
3
 Simple component to pretty print a number.
4
5
 @namespace Components
6
 */
7
'use strict';
8
9
angular.module('game').component('pretty', {
10
  template: '<span ng-bind-html="ct.util.trustHTML(ct.util.prettifyNumber(ct.value, ct.state.player))"></span>',
11
  controller: ['util', 'state', function(util, state) {
12
    this.util = util;
13
    this.state = state;
14
  }],
15
  controllerAs: 'ct',
16
  bindings: {
17
    value: '<'
18
  }
19
});
20